feat: Add Zig bindings for C-KZG-4844#586
Conversation
roninjin10
commented
Jul 17, 2025
- Complete KZG polynomial commitment operations for EIP-4844/EIP-7594
- Optional embedded trusted setup with dead code elimination
- Real cryptographic functionality with zero mocks
- Compatible with zig fetch for dependency management
b2eb7c0 to
1495d94
Compare
- Complete KZG polynomial commitment operations for EIP-4844/EIP-7594 - Optional embedded trusted setup with dead code elimination - Real cryptographic functionality with zero mocks - Compatible with zig fetch for dependency management 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Replace git submodule approach with automatic blst download - Download blst v0.3.15 at build time when submodule missing - Simplify to single workflow supporting zig fetch - Update README to reflect streamlined installation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Download blst v0.3.15 and create missing server.c file - Add proper build dependencies to ensure files exist before compilation - server.c includes all individual blst source files as unity build - Tests pass with automatically downloaded blst 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Convert blst from submodule to vendored files so they're included when Zig fetches the package.
Required for Zig build process
|
Hey @roninjin10 so I'm a big zig fan and open to having bindings for these here. It seems that there are some missing API functions though
Also, it appears that you have overwritten the |
|
Hey sorry forgot this or was even open. Been pushing to my main branch trying to get zig 15 working |
|
Ha no worries. And sorry for the slow review. Happy to work with you on this. |
|
Converted to a draft for now. @jtraglia I am 100% focused on releasing our new zig EVM next week but will circle back to this pr. For reference, I believe the issue I have been running into atm is I couldn't get the zig module system when we zig fetch this to work with the submodules. This blocked me but is likely a solvable problem I just would need to fight it for a bit to figure out how to solve it. |
|
EVM is here btw. We use this library and shout you out in the readme https://github.com/evmts/guillotine |
|
Hey @roninjin10 I'm going to close this PR. Feel free to re-open if/when the bindings are ready! |